<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath %>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>修改商品</title>
    <jsp:include page="../../../../common/easyui-css.inc" flush="true"/>
    <jsp:include page="../../../../common/easyui-js.inc" flush="true"/>
    <script type="text/javascript" src="js/utils.js"></script>
    <script type="text/javascript" src="pages/biz/goods/create/common.js"></script>
    <script type="text/javascript" src="pages/biz/goods/create/modi.js"></script>
    <script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        .contentEdit {
            color: blue;
            width: 120px;
        }

        #gallery-table a {
            color: #eb8a3d;
        }

        #gallery-table a {
            color: #eb8a3d;
        }

        #gallery-table a {
            color: #eb8a3d;
        }

        #changeCol > a {
            color: blue !important;
        }

        #changeCol > a:hover {
            color: blue !important;
        }

        #changeCol > a:link {
            color: blue !important;
        }
    </style>
</head>
<body>
<h2 style="text-align:center">修改商品</h2>

<form name="saveForm" id="saveForm" method="post">
    <input style="display: none" type="text" name="id" id="id" value="${good.id}"/>
    <center>
        <table class="table_save" cellspacing="1" cellpadding="1" border="0">
            <tr>
                <td align="right" class="td_save contentEdit">商品名称:</td>
                <td style="text-align:left;"><input type="text" name="name" id="name" value="${good.name}" class="input"/></td>
            </tr>
            <tr>
                <td class="td_save contentEdit" width="100px;" align="right">进货日期：</td>
                <td style="text-align:left;">
                    <div style="float: left; margin-left: 5px">
                        <input type="text" style="width:150px;height:18px;" class="input" name="purchaseDate" value="${good.purchaseDateStr}"
                                                                      id="purchaseDate" readonly/>
                    </div>
                    <div style="float: left; margin-left: 5px"><img
                            onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', el:'purchaseDate'})"
                            src="My97DatePicker/skin/datePicker.gif" width="16px" height="22px">
                    </div>
                </td>
            <tr>
            <tr>
                <td align="right" class="td_save contentEdit">库存量:</td>
                <td style="text-align:left;"><input type="text" name="repertory" id="repertory" value="${good.repertory}" class="input"/></td>
            </tr>
            <tr>
                <td align="right" class="td_save contentEdit">原价:</td>
                <td><input type="text" name="originalPrice" id="originalPrice" value="${good.originalPrice}" class="input"/></td>
            </tr>
            <tr>
                <td align="right" class="td_save contentEdit">售价:</td>
                <td><input type="text" name="makerPrice" id="makerPrice" value="${good.makerPrice}" class="input"/></td>
            </tr>

        </table>
    </center>
</form>
<center>
<div id="dlg-buttons" class="pageButtonDiv"><a id="update_submit_btn" href="#" class="easyui-linkbutton"
                                               data-options="iconCls:'icon-ok'">提交</a> <a href="javascript:void(0)"
                                                                                          class="easyui-linkbutton"
                                                                                          onclick="javascript:parent.$('#updateWin').window('close')"
                                                                                          iconcls="icon-cancel">关闭</a>
</div>
</center>
<div id="refWin"></div>
<div id="historyWin"></div>
<div id="opportunitiesRefWin"></div>
<div id="withdrawfWin"></div>
</body>
</html>
